<?php  include VIEWPATH.'common/head.php';  ?>
    <script type="text/javascript">
        var status = '<?php echo $_GET['status'];?>';
        if(status == '-1'){
            alert('fail:<?php echo $_GET['msg'];?>');
        }
    </script>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">

                        <?php $avator = empty($userInfo['path']) ? FONT_UPLOAD_PATH.'static/noavatar_middle.gif' : $userInfo['path'];?>
                        <div class="user_h_cl">
                            <img src="<?php echo $avator?>" width="54" height="54"/>
                            <p><?php echo $userInfo['nickname'] ? $userInfo['nickname'] : $userInfo['username'];?></p>
                            <p style="color: red;">用户注册方式：(<?php
                                if($userInfo['user_type']==1){echo "注册";}
                                if($userInfo['user_type']==2){echo "机器人";}
                                if($userInfo['user_type']==3){echo $userInfo['user_source']?$userInfo['user_source'].'导入':"未知导入";}
                                ?>)</p>
                            <div class="clearfix"></div>
                        </div>
                        <ul id="myTab" class="nav nav-tabs" style="margin-top: 10px;">
                            <li class="<?php if($_GET['op']=="user_info" || empty($_GET['op'])){ echo "active";} ?>">
                                <a href="index.php?c=user&m=user_info&uid=<?php echo $uid;?>&op=user_info">用户资料</a>
                            </li>
                            <li class="<?php if($_GET['op']=="post" ){ echo "active";} ?>">
                                <a href="index.php?c=user&m=user_info&uid=<?php echo $uid;?>&op=post">主题列表</a>
                            </li>
                            <li class="<?php if($_GET['op']=="reply" ){ echo "active";} ?>">
                                <a href="index.php?c=user&m=user_info&uid=<?php echo $uid;?>&op=reply">回复列表</a>
                            </li>

                            <li class="<?php if($_GET['op']=="login" ){ echo "active";} ?>">
                                <a href="index.php?c=user&m=user_info&uid=<?php echo $uid;?>&op=login">登陆日志</a>
                            </li>
                            <li class="<?php if($_GET['op']=="credit" ){ echo "active";} ?>">
                                <a href="index.php?c=user&m=user_info&uid=<?php echo $uid;?>&op=credit">信誉记录</a>
                            </li>
<!--                            <li class="--><?php //if($_GET['op']=="user_sub" ){ echo "active";} ?><!--">-->
<!--                                <a href="index.php?c=user&m=user_info&uid=--><?php //echo $uid;?><!--&op=user_sub">预约记录</a>-->
<!--                            </li>-->
<!--                            <li class="--><?php //if($_GET['op']=="user_order" ){ echo "active";} ?><!--">-->
<!--                                <a href="index.php?c=user&m=user_info&uid=--><?php //echo $uid;?><!--&op=user_order">下单记录</a>-->
<!--                            </li>-->
                        </ul>
                        <div id="myTabContent" class="tab-content">
                            <?php
                            if( empty($_GET['op']) || $_GET['op']=="user_info"){
                                require_once VIEWPATH.'user/user_info_info.php';
                            }else if($_GET['op']=="post"){
                                require_once VIEWPATH.'user/user_info_post.php';
                            }else if($_GET['op']=="reply"){
                                require_once VIEWPATH.'user/user_info_reply.php';
                            }else if($_GET['op']=="login"){
                                require_once VIEWPATH.'user/user_info_login.php';
                            }else if($_GET['op']=="credit"){
                                require_once VIEWPATH.'user/user_info_credit.php';
                            }
                            ?>
                        </div>


                </div>
            </div>
        </div>
    </div>



<?php  include VIEWPATH.'common/footer.php';  ?>